import request from "../utils/request.js"

export const addCartAPI = (data) => request.post("/cart/add",data);

export const getCartListAPI = (data) => request.post("/cart/list",data);
export const updateCartAllCheckedStatusAPI = (data) => request.post("/cart/selectall",data);
export const updateCartOneCheckedStatusAPI = (data) => request.post("/cart/selectone",data);
export const updateCartNumAPI = (data) => request.post("/cart/updatenum",data);
export const delCartByIdAPI = (data) => request.post("/cart/remove",data);
export const clearCartAPI = (data) => request.post("/cart/removeall",data);